package org.car.world.controller;


import java.util.List;

import org.car.world.core.entily.VouchersTable;
import org.car.world.core.mapper.VouchersTableMapper;
import org.car.world.service.VouchersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Administrator
 * @ClassName: TestController
 * @Description: TODO(测试访问数据库)
 * @date Nov 5, 2018
 */
@Controller
public class TestController {


    @Autowired
    VouchersService vouchersService;

    /**
     * @param @return 参数
     * @return String    返回类型
     * @throws
     * @Title: test_show
     * @Description: TODO(测试freeMark访问页面)
     */
    @RequestMapping("T")
    public String test_show() {
        return "index";
    }


    /**
     * @param @return 参数
     * @return String    返回类型
     * @throws
     * @Title: test_Vouchers
     * @Description: TODO(测试模块调用访问数据库)
     */
    @RequestMapping("V")
    public String test_Vouchers() {
        System.err.println("找到数据:" + vouchersService.selectAll().size() + "条");
        return "index";
    }


}
